#include <iostream>
using namespace std;
int main()
{
  cout << "vvedi 3 chusla" << endl;
  int A,B,C;
  cin >> A >> B >> C;
  if (A>0&&B>0&&C>0)
      cout << "1";
  else
      cout << "0";
  return 0;
}
